package lhdx9;

public class Aviator {
    private String names;

    public String getNames() {
        return names;
    }

    public void setNames(String names) {
        this.names = names;
    }

    public Aviator(String names) {
        this.names = names;
    }

    public void testFly(Aircraft a){
        System.out.println("飞行员"+names+"开着"+a.getName()+"飞机！");
        a.takeoff();
    }
}
